<div style="padding:10px 15px 0px 15px">
    <form id="user_cfg_msg_form" class="am-form">
        <?php if ($InputData['cfg_user_msg'] == 2 && !isset($_SESSION['weibo_user'])) { //第三方用户不能修改地区 由第三方平台修改?>
            <div class="am-form-group ">
                <label style="padding-left:10px" for="user_cfg_province">省:</label>
                <input type="text" class="" id="user_cfg_province" name="user_cfg_province" placeholder="选填 请输入所在省"
                       value="<?php echo $userMsg->Province; ?>">
            </div>
            <div class="am-form-group">
                <label style="padding-left:10px" for="user_cfg_city">市:</label>
                <input type="text" class="" id="user_cfg_city" name="user_cfg_city" placeholder="选填 请输入所在市"
                       value="<?php echo $userMsg->City; ?>">
            </div>
        <?php } elseif ($InputData['cfg_user_msg'] == 2 && isset($_SESSION['weibo_user'])) { //第三方用户不能修改地区 由第三方平台修改

            $warningText = '请在第三方平台修改地区';
            require("{$CfgPara->root}/view/warning_freetext_n_back.app.v.php");

        }
        elseif ($InputData['cfg_user_msg'] == 3){ ?>
            <div class="am-form-group">
                <div class="am-radio-inline">
                    <label>
                        <input type="radio" name="user_cfg_sex"
                               value="0" <?php if ($userMsg->Sex == 0) echo 'checked="checked"' ?>>
                        保密
                    </label>
                </div>
                <div class="am-radio-inline">
                    <label>
                        <input type="radio" name="user_cfg_sex"
                               value="1" <?php if ($userMsg->Sex == 1) echo 'checked="checked"' ?>>
                        男
                    </label>
                </div>
                <div class="am-radio-inline">
                    <label>
                        <input type="radio" name="user_cfg_sex"
                               value="2" <?php if ($userMsg->Sex == 2) echo 'checked="checked"' ?>>
                        女
                    </label>
                </div>
            </div>
        <?php } elseif ($InputData['cfg_user_msg'] == 4){ ?>
        <input id="user_cfg_birthday" name="user_cfg_birthday" type="text" class="am-form-field" placeholder="请选择生日"
               readonly="readonly" required="required"/>
            <script type="text/javascript">$('#user_cfg_birthday').datepicker({format: 'yyyy-mm-dd'});</script>
        <?php } elseif ($InputData['cfg_user_msg'] == 5){ ?>
            <div class="am-form-group ">
                <label style="padding-left:10px" for="user_cfg_province">原密码: 长度6-16</label>
                <input type="password" class="" id="user_cfg_old_password" name="user_cfg_old_password"
                       placeholder="支持大小写字母和数字">
            </div>
            <div class="am-form-group">
                <label style="padding-left:10px" for="user_cfg_city">修改后密码: 长度6-16</label>
                <input type="password" class="" id="user_cfg_new_password" name="user_cfg_new_password"
                       placeholder="支持大小写字母和数字">
            </div>
        <?php } ?>
    </form>
    <hr/>
    <?php if (!($InputData['cfg_user_msg'] == 2 && isset($_SESSION['weibo_user']))) { ?>
        <button type="button" class="am-btn am-btn-secondary am-fr"
                onclick="user_cfg_msg(<?php echo $InputData['cfg_user_msg'] ?>)">确定
        </button>
    <?php } ?>
</div>